import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/child-vue-app1/home'
    },
    {
      path: '/child-vue-app1/:pathMatch(.*)*',
      name: 'child-vue-app1',
      component: () => import('../views/ChildVueApp1.vue')
    },
    {
      path: '/child-vue-app2/:pathMatch(.*)*',
      name: 'child-vue-app2',
      component: () => import('../views/ChildVueApp2.vue')
    }
  ]
})

export default router
